.chatBackImage {
  min-height: 100vh;
  background-color: var(--theme-bg-card);
}

.chatBackImageHeader {
  background: var(--theme-bg-hover);
  border-bottom: 1px solid var(--theme-border-primary);
}

.chatBackImageContent {
  padding: 20px;
  padding-bottom: 100px;
}

.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
  background: var(--theme-bg-hover);
  border-top: 1px solid var(--theme-border-primary);
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

.disclaimer {
  font-size: 12px;
  color: #888;
  margin-bottom: 16px;
}

.submitButton {
  width: 200px;
  height: 44px;
  background: var(--theme-primary);
  border-radius: 22px;
  color: white;
  font-size: 16px;
  font-weight: 500;
  border: none;
  
  &:hover {
    background: var(--theme-primary-hover);
    opacity: 0.9;
  }
}

.uploadSection {
  background: var(--theme-bg-hover);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  border: 1px solid #333;
}

.sectionTitle {
  font-size: 16px;
  font-weight: 500;
  color: var(--theme-text-primary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  
  &::before {
    content: '';
    width: 4px;
    height: 16px;
    background: var(--theme-primary);
    border-radius: 2px;
    margin-right: 8px;
  }
}

.avatarSection {
  display: flex;
  justify-content: center;
  padding-top: 16px;
  padding-bottom: 16px;
}

.avatarUpload {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 50%; // 改为圆形
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed rgba(255, 255, 255, 0.3) !important; // 改为虚线边框
  cursor: pointer;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.1);
  margin: 0 auto;

  &:hover {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.2);
  }

  .material-icons {
    font-size: 40px; // 从48px调整为40px，相对于80px的容器更合适
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); // 确保图标完全居中
  }

  &:hover .material-icons {
    color: rgba(255, 255, 255, 0.8);
    transform: translate(-50%, -50%) scale(1.1); // 保持居中并缩放
  }

  input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
  }

  // 当有图片时隐藏上传图标
  &:has(.adm-image-uploader-cell-image) {
    .material-icons {
      display: none;
    }
  }

  // 当没有图片时显示边框和图标
  &:not(:has(.adm-image-uploader-cell-image)) {
    border: 2px solid rgba(255, 255, 255, 0.3);

    .material-icons {
      display: block;
    }
  }

  // 当有图片时隐藏边框
  &:has(.adm-image-uploader-cell-image) {
    border: none;
  }
}

.uploadText {
  font-size: 14px; // text-sm
  color: var(--theme-text-muted);
  margin: 8px 0 0 0; // 改为正常文档流，添加顶部间距
  text-align: center;
  width: 100%;
}

.errorText {
  font-size: 14px;
  color: var(--theme-error); // 红色错误文字
  margin: 8px 0 0 0;
  text-align: center;
  width: 100%;
}

.uploadWrapper {
  :global {
    .adm-image-uploader-cell {
      background-color: transparent;
      border: none;
      border-radius: 50%; // 改为圆形
      width: 96px;
      height: 96px;
      position: relative;
    }

    .adm-image-uploader-cell-icon {
      display: none; // 隐藏默认图标，使用自定义图标
    }

    .adm-image-uploader-upload-button {
      width: 96px;
      height: 96px;
      border-radius: 50%; // 改为圆形
      background: transparent;
      border: none;
    }

    .adm-image-uploader-cell-image {
      width: 100%;
      height: 100%;
      border-radius: 50%; // 改为圆形
      object-fit: cover;
    }

    .adm-image-uploader-cell-delete {
      background: rgba(0, 0, 0, 0.6);
      border-radius: 50%;
      width: 24px;
      height: 24px;
      top: 8px;
      right: 8px;
    }
  }
}
:global(.adm-list-body){
  background-color: transparent !important;
  border: none !important;
}
:global(.adm-list-item){
  background-color: transparent !important;
}
:global(.adm-list-item-content){
  border: none !important;
}

// 全局样式修改
:global {
  .adm-image-uploader-upload-button-icon{
    display: none !important;
  }
  .add-a-photo-icon{
    font-size: 30px !important;
    color: var(--theme-text-primary) !important;
  }
  .adm-image-uploader-cell-delete-icon{
    left: 9px !important;
    top: 9px !important;
  }
}